package com.make.house.api.repository.video;

import com.make.house.api.entity.video.VideoTypeEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

/**
 * Created by yanglinlong on 18/8/21.
 */
@Repository
public interface VideoTypeRepository extends JpaRepository<VideoTypeEntity, Integer> {

    VideoTypeEntity findById(int id);

//    @Query("select * from video_type order by is_top desc, id asc")
    ArrayList<VideoTypeEntity> findAllByOrderByIsTopDescIdAsc();


}
